package com.gamefx.engine1.events
{
	import flash.events.Event;

	/**
	 * 地图事件
	 * @author hzf
	 *
	 */
	public class MapEvent extends Event
	{
		public static const MAP_RENDER_COMPLETED:String = "MAP_RENDER_COMPLETED";

		public static const MAP_CLICK:String = "MAP_CLICK";

		public static const MAP_DOUBLE_CLICK:String = "MAP_DOUBLE_CLICK";


		public static const ITEM_CLICK:String = "ITEM_CLICK";

		public static const ITEM_DOUBLE_CLICK:String = "ITEM_DOUBLE_CLICK";

		public static const ITEM_MOUSE_OVER:String = "ITEM_MOUSE_OVER";

		public static const ITEM_MOUSE_OUT:String = "ITEM_MOUSE_OUT";




		private var _localX:Number;
		private var _localY:Number;


		public function MapEvent(type:String, localX:Number = 0, localY:Number = 0, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, bubbles, cancelable);

			_localX = localX;
			_localY = localY;
		}

		public function get localX():Number
		{
			return _localX;
		}

		public function get localY():Number
		{
			return _localY;
		}


	}
}